package com.stone.framework.user.entity;

import javax.persistence.Column;
import javax.persistence.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.stone.framework.core.entity.CommonEntity;

@TableName("ST_DEPT")
@Entity(name = "ST_DEPT")
public class Dept extends CommonEntity {

    private static final long serialVersionUID = -6945391442278164281L;

    @TableField("CODE")
    @Column(name = "CODE")
    private String code;

    @TableField("NAME")
    @Column(name = "NAME")
    private String name;

    @TableField("DESC_")
    @Column(name = "DESC_")
    private String desc;

    @TableField("PARENT_ID")
    @Column(name = "PARENT_ID")
    private Long parentId;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

}
